import http from '@/service/http'
import * as T from './types'

export const getPostingApi: T.GetPostingApi = {
  getPosting() {
    return http.get('/admin_posts')
  }
}

export const getPostingDetailApi: T.GetPostingDetailApi = {
  getPostingDetail(params) {
    return http.get('/admin_post_details', params)
  }
}

export const delPostingApi: T.DelPostingApi = {
  delPosting(params) {
    return http.delete('/del_post', params)
  }
}
//export default { getPostingApi, getPostingDetailApi }
